

            


            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
     public partial class ManagerEmployees
     {

            //Write any additional methods or properties here 
            //Don't modify any genrated classes


         

         public Persons objEmployee
         {
             get {

                 PersonsDB objPersonsDB = new PersonsDB(ConnectionStrings.LMS);
                 List<Persons> lstPersons =  objPersonsDB.getPersonsByGenID(EmployeeID);

                 if (lstPersons.Count == 0)
                     return new Persons();
                 else
                     return lstPersons[0];
             
             }
             
         }


         public Persons objManager
         {
             get
             {

                 PersonsDB objPersonsDB = new PersonsDB(ConnectionStrings.LMS);
                 List<Persons> lstPersons = objPersonsDB.getPersonsByGenID(ManagerID);

                 if (lstPersons.Count == 0)
                     return new Persons();
                 else
                     return lstPersons[0];

             }

         }


     }
}
